home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news text
| default
| |
99%
| file
| C source, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 65 | 77 73 2e 72 61 69 6e 2e |Path: ne|ws.rain.|
|00000010| 6f 72 67 21 75 73 65 6e | 65 74 0a 46 72 6f 6d 3a |org!usen|et.From:|
|00000020| 20 22 47 75 75 73 20 4c | 65 65 75 77 20 6a 72 2e | "Guus L|eeuw jr.|
|00000030| 22 20 3c 67 75 75 73 6c | 40 65 69 66 66 65 6c 2e |" <guusl|@eiffel.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 0a 53 75 62 | comp.la|ng.c.Sub|
|00000060| 6a 65 63 74 3a 20 52 65 | 3a 20 77 68 79 20 67 65 |ject: Re|: why ge|
|00000070| 74 20 39 20 73 74 72 69 | 6e 67 73 20 6f 6e 6c 79 |t 9 stri|ngs only|
|00000080| 3f 0a 44 61 74 65 3a 20 | 46 72 69 2c 20 32 36 20 |?.Date: |Fri, 26 |
|00000090| 4a 61 6e 20 31 39 39 36 | 20 30 39 3a 30 35 3a 34 |Jan 1996| 09:05:4|
|000000a0| 38 20 2d 30 38 30 30 0a | 4f 72 67 61 6e 69 7a 61 |8 -0800.|Organiza|
|000000b0| 74 69 6f 6e 3a 20 49 53 | 45 20 49 6e 63 2e 20 68 |tion: IS|E Inc. h|
|000000c0| 74 74 70 3a 2f 2f 77 77 | 77 2e 65 69 66 66 65 6c |ttp://ww|w.eiffel|
|000000d0| 2e 63 6f 6d 0a 4d 65 73 | 73 61 67 65 2d 49 44 3a |.com.Mes|sage-ID:|
|000000e0| 20 3c 33 31 30 39 30 39 | 45 43 2e 37 38 32 42 30 | <310909|EC.782B0|
|000000f0| 30 37 43 40 65 69 66 66 | 65 6c 2e 63 6f 6d 3e 0a |07C@eiff|el.com>.|
|00000100| 52 65 66 65 72 65 6e 63 | 65 73 3a 20 3c 34 65 35 |Referenc|es: <4e5|
|00000110| 31 74 68 24 34 62 69 40 | 6e 65 77 73 2e 6e 65 76 |1th$4bi@|news.nev|
|00000120| 61 64 61 2e 65 64 75 3e | 0a 4e 4e 54 50 2d 50 6f |ada.edu>|.NNTP-Po|
|00000130| 73 74 69 6e 67 2d 48 6f | 73 74 3a 20 40 6f 75 74 |sting-Ho|st: @out|
|00000140| 62 61 63 6b 2e 65 69 66 | 66 65 6c 2e 63 6f 6d 0a |back.eif|fel.com.|
|00000150| 4d 69 6d 65 2d 56 65 72 | 73 69 6f 6e 3a 20 31 2e |Mime-Ver|sion: 1.|
|00000160| 30 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |0.Conten|t-Type: |
|00000170| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 63 68 61 72 |text/pla|in; char|
|00000180| 73 65 74 3d 75 73 2d 61 | 73 63 69 69 0a 43 6f 6e |set=us-a|scii.Con|
|00000190| 74 65 6e 74 2d 54 72 61 | 6e 73 66 65 72 2d 45 6e |tent-Tra|nsfer-En|
|000001a0| 63 6f 64 69 6e 67 3a 20 | 37 62 69 74 0a 58 2d 4d |coding: |7bit.X-M|
|000001b0| 61 69 6c 65 72 3a 20 4d | 6f 7a 69 6c 6c 61 20 32 |ailer: M|ozilla 2|
|000001c0| 2e 30 62 33 20 28 58 31 | 31 3b 20 49 3b 20 4c 69 |.0b3 (X1|1; I; Li|
|000001d0| 6e 75 78 20 31 2e 32 2e | 38 20 69 35 38 36 29 0a |nux 1.2.|8 i586).|
|000001e0| 54 6f 3a 20 43 6c 61 70 | 74 6f 6e 20 43 68 61 6e |To: Clap|ton Chan|
|000001f0| 20 3c 63 68 61 6e 63 6c | 40 6e 65 76 61 64 61 2e | <chancl|@nevada.|
|00000200| 65 64 75 3e 0a 43 43 3a | 20 67 75 75 73 6c 0a 0a |edu>.CC:| guusl..|
|00000210| 43 6c 61 70 74 6f 6e 20 | 43 68 61 6e 20 77 72 6f |Clapton |Chan wro|
|00000220| 74 65 3a 0a 3e 20 0a 3e | 20 49 20 63 61 6e 27 74 |te:.> .>| I can't|
|00000230| 20 66 69 67 75 72 65 20 | 6f 75 74 20 77 68 79 20 | figure |out why |
|00000240| 49 20 63 61 6e 20 6f 6e | 6c 79 20 69 6e 70 75 74 |I can on|ly input|
|00000250| 20 39 20 73 74 72 69 6e | 67 73 0a 3e 20 69 6e 73 | 9 strin|gs.> ins|
|00000260| 74 65 61 64 20 6f 66 20 | 31 30 20 6f 6e 20 74 68 |tead of |10 on th|
|00000270| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 70 72 6f 67 |e follow|ing prog|
|00000280| 72 61 6d 3a 0a 3e 20 0a | 3e 20 2a 2a 2a 2a 2a 2a |ram:.> .|> ******|
|00000290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002c0| 2a 2a 2a 2a 2a 2a 2a 2a | 0a 3e 20 0a 3e 20 2f 2a |********|.> .> /*|
|000002d0| 20 57 72 69 74 65 20 61 | 20 70 72 6f 67 72 61 6d | Write a| program|
|000002e0| 20 74 68 61 74 20 72 65 | 61 64 73 20 61 20 6e 75 | that re|ads a nu|
|000002f0| 6d 62 65 72 20 61 6e 64 | 20 74 68 65 6e 20 61 20 |mber and| then a |
|00000300| 6c 69 73 74 20 6f 66 20 | 20 2a 2f 0a 3e 20 2f 2a |list of | */.> /*|
|00000310| 20 73 74 72 69 6e 67 73 | 20 28 61 6c 6c 20 6f 6e | strings| (all on|
|00000320| 20 73 65 70 61 72 61 74 | 65 20 6c 69 6e 65 73 29 | separat|e lines)|
|00000330| 2c 20 61 6e 64 20 74 68 | 65 6e 20 70 72 69 6e 74 |, and th|en print|
|00000340| 73 20 6f 6e 65 20 6f 66 | 20 2a 2f 0a 3e 20 2f 2a |s one of| */.> /*|
|00000350| 20 74 68 65 20 6c 69 6e | 65 73 20 66 72 6f 6d 20 | the lin|es from |
|00000360| 74 68 65 20 6c 69 73 74 | 20 61 73 20 73 65 6c 65 |the list| as sele|
|00000370| 63 74 65 64 20 62 79 20 | 74 68 65 20 6e 75 6d 62 |cted by |the numb|
|00000380| 65 72 2e 20 20 20 20 20 | 20 2a 2f 0a 3e 20 0a 3e |er. | */.> .>|
|00000390| 20 23 69 6e 63 6c 75 64 | 65 20 3c 73 74 64 69 6f | #includ|e <stdio|
|000003a0| 2e 68 3e 0a 3e 20 0a 3e | 20 76 6f 69 64 20 6d 61 |.h>.> .>| void ma|
|000003b0| 69 6e 28 29 0a 3e 20 7b | 0a 3e 20 20 20 20 20 20 |in().> {|.> |
|000003c0| 20 20 20 63 68 61 72 20 | 73 74 72 5b 31 30 5d 5b | char |str[10][|
|000003d0| 38 30 5d 3b 0a 3e 20 20 | 20 20 20 20 20 20 20 69 |80];.> | i|
|000003e0| 6e 74 20 69 2c 20 6a 3b | 0a 3e 20 0a 3e 20 20 20 |nt i, j;|.> .> |
|000003f0| 20 20 20 20 20 20 70 72 | 69 6e 74 66 28 22 45 6e | pr|intf("En|
|00000400| 74 65 72 20 61 20 6e 75 | 6d 62 65 72 20 28 30 2d |ter a nu|mber (0-|
|00000410| 39 29 3a 5c 6e 22 29 3b | 0a 3e 20 20 20 20 20 20 |9):\n");|.> |
|00000420| 20 20 20 73 63 61 6e 66 | 28 22 25 64 22 2c 20 26 | scanf|("%d", &|
|00000430| 6a 29 3b 0a 0a 48 65 72 | 65 20 28 77 69 74 68 20 |j);..Her|e (with |
|00000440| 60 73 63 61 6e 66 27 29 | 20 6c 69 65 73 20 74 68 |`scanf')| lies th|
|00000450| 65 20 70 72 6f 62 6c 65 | 6d 2e 0a 54 6f 20 65 6e |e proble|m..To en|
|00000460| 64 20 65 6e 74 65 72 69 | 6e 67 20 61 20 64 69 67 |d enteri|ng a dig|
|00000470| 69 74 2c 20 79 6f 75 20 | 68 61 76 65 20 74 6f 20 |it, you |have to |
|00000480| 70 72 65 73 73 20 74 68 | 65 20 60 45 6e 74 65 72 |press th|e `Enter|
|00000490| 27 20 6b 65 79 2e 20 60 | 53 63 61 6e 66 27 20 77 |' key. `|Scanf' w|
|000004a0| 69 6c 6c 0a 74 68 65 6e | 20 72 65 61 64 20 61 6c |ill.then| read al|
|000004b0| 6c 20 2a 64 69 67 69 74 | 73 2a 20 79 6f 75 20 74 |l *digit|s* you t|
|000004c0| 79 70 65 64 2e 20 54 68 | 65 20 66 69 72 73 74 20 |yped. Th|e first |
|000004d0| 6e 6f 6e 2d 64 69 67 69 | 74 20 77 69 6c 6c 20 6e |non-digi|t will n|
|000004e0| 6f 74 20 62 65 20 65 61 | 74 65 6e 0a 66 72 6f 6d |ot be ea|ten.from|
|000004f0| 20 74 68 65 20 69 6e 70 | 75 74 20 73 74 72 65 61 | the inp|ut strea|
|00000500| 6d 2e 20 49 6e 20 79 6f | 75 72 20 63 61 73 65 3a |m. In yo|ur case:|
|00000510| 20 74 68 65 20 63 6f 64 | 65 20 66 6f 72 20 74 68 | the cod|e for th|
|00000520| 65 20 65 6e 74 65 72 20 | 6b 65 79 20 72 65 6d 61 |e enter |key rema|
|00000530| 69 6e 73 0a 61 73 20 69 | 6e 70 75 74 2e 20 54 68 |ins.as i|nput. Th|
|00000540| 65 20 66 69 72 73 74 20 | 63 61 6c 6c 20 74 6f 20 |e first |call to |
|00000550| 60 67 65 74 73 27 20 77 | 69 6c 6c 20 74 68 65 6e |`gets' w|ill then|
|00000560| 20 72 65 61 64 20 61 6e | 20 65 6d 70 74 79 20 73 | read an| empty s|
|00000570| 74 72 69 6e 67 2e 0a 0a | 50 6c 65 61 73 65 20 66 |tring...|Please f|
|00000580| 69 6e 64 20 74 68 65 20 | 72 65 76 69 73 65 64 20 |ind the |revised |
|00000590| 76 65 72 73 69 6f 6e 20 | 61 74 20 74 68 65 20 65 |version |at the e|
|000005a0| 6e 64 2e 2e 2e 0a 0a 3e | 20 0a 3e 20 20 20 20 20 |nd.....>| .> |
|000005b0| 20 20 20 20 70 72 69 6e | 74 66 28 22 45 6e 74 65 | prin|tf("Ente|
|000005c0| 72 20 31 30 20 73 74 72 | 69 6e 67 73 3a 5c 6e 22 |r 10 str|ings:\n"|
|000005d0| 29 3b 0a 3e 20 20 20 20 | 20 20 20 20 20 66 6f 72 |);.> | for|
|000005e0| 28 69 3d 30 3b 20 69 3c | 31 30 3b 20 69 2b 2b 29 |(i=0; i<|10; i++)|
|000005f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|00000600| 67 65 74 20 31 30 20 73 | 74 72 69 6e 67 73 20 2a |get 10 s|trings *|
|00000610| 2f 0a 3e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |/.> | |
|00000620| 20 20 20 20 67 65 74 73 | 28 73 74 72 5b 69 5d 29 | gets|(str[i])|
|00000630| 3b 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 62 |; | /* b|
|00000640| 75 74 20 63 61 6e 20 69 | 6e 70 75 74 20 39 20 73 |ut can i|nput 9 s|
|00000650| 74 72 69 6e 67 73 20 2a | 2f 0a 3e 20 0a 3e 20 20 |trings *|/.> .> |
|00000660| 20 20 20 20 20 20 20 69 | 66 28 6a 3e 30 20 26 26 | i|f(j>0 &&|
|00000670| 20 6a 3c 31 30 29 0a 0a | 48 65 72 65 20 69 73 20 | j<10)..|Here is |
|00000680| 61 6e 20 6f 68 74 65 72 | 20 70 72 6f 62 6c 65 6d |an ohter| problem|
|00000690| 3a 20 57 68 65 6e 20 79 | 6f 75 20 74 79 70 65 20 |: When y|ou type |
|000006a0| 64 69 67 69 74 20 30 20 | 61 74 20 74 68 65 20 73 |digit 0 |at the s|
|000006b0| 74 61 72 74 2c 20 6e 6f | 20 61 6e 73 77 65 72 0a |tart, no| answer.|
|000006c0| 77 69 6c 6c 20 62 65 20 | 67 69 76 65 6e 2e 2e 2e |will be |given...|
|000006d0| 0a 0a 3e 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |..> | |
|000006e0| 20 20 20 20 70 72 69 6e | 74 66 28 22 41 6e 73 77 | prin|tf("Answ|
|000006f0| 65 72 3a 20 25 73 5c 6e | 22 2c 20 73 74 72 5b 6a |er: %s\n|", str[j|
|00000700| 5d 29 3b 0a 3e 20 7d 0a | 3e 20 0a 3e 20 2a 2a 2a |]);.> }.|> .> ***|
|00000710| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000720| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000730| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000740| 2a 2a 2a 2a 2a 2a 2a 0a | 3e 20 0a 3e 20 49 20 68 |*******.|> .> I h|
|00000750| 61 76 65 20 64 65 62 75 | 67 67 65 64 20 69 74 20 |ave debu|gged it |
|00000760| 61 6e 64 20 66 69 6e 64 | 20 74 68 65 20 77 68 65 |and find| the whe|
|00000770| 6e 20 22 69 22 20 63 6f | 6d 65 73 20 74 6f 0a 3e |n "i" co|mes to.>|
|00000780| 20 22 67 65 74 73 28 73 | 74 72 5b 69 5d 29 22 2c | "gets(s|tr[i])",|
|00000790| 20 22 69 22 20 62 75 6d | 70 73 20 75 70 20 74 6f | "i" bum|ps up to|
|000007a0| 20 74 77 6f 20 62 65 66 | 6f 72 65 20 61 63 63 65 | two bef|ore acce|
|000007b0| 70 74 69 6e 67 0a 3e 20 | 74 68 65 20 66 69 72 73 |pting.> |the firs|
|000007c0| 74 20 69 6e 70 75 74 20 | 73 74 72 69 6e 67 2e 20 |t input |string. |
|000007d0| 20 57 68 79 3f 0a 3e 20 | 0a 3e 20 50 6c 65 61 73 | Why?.> |.> Pleas|
|000007e0| 65 20 65 6d 61 69 6c 20 | 6d 65 20 61 6e 79 20 68 |e email |me any h|
|000007f0| 69 6e 74 2e 20 20 54 68 | 61 6e 6b 73 20 69 6e 20 |int. Th|anks in |
|00000800| 61 64 76 61 6e 63 65 2e | 0a 3e 20 0a 3e 20 43 68 |advance.|.> .> Ch|
|00000810| 65 65 72 73 2c 0a 3e 20 | 43 6c 61 70 74 6f 6e 69 |eers,.> |Claptoni|
|00000820| 6e 63 6c 75 64 65 20 3c | 73 74 64 69 6f 2e 68 3e |nclude <|stdio.h>|
|00000830| 0a 0a 52 65 67 61 72 64 | 73 2c 0a 09 47 75 75 73 |..Regard|s,..Guus|
|00000840| 20 4c 65 65 75 77 20 6a | 72 2e 0a 0a 2d 2d 2d 2d | Leeuw j|r...----|
|00000850| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000860| 2d 2d 2d 2d 20 49 4e 43 | 4c 55 44 45 44 20 43 4f |---- INC|LUDED CO|
|00000870| 44 45 20 3c 63 75 74 20 | 68 65 72 65 3e 20 2d 2d |DE <cut |here> --|
|00000880| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000890| 2d 2d 2d 2d 0a 0a 69 6e | 74 0a 6d 61 69 6e 20 28 |----..in|t.main (|
|000008a0| 29 0a 7b 0a 20 20 63 68 | 61 72 20 73 74 72 5b 31 |).{. ch|ar str[1|
|000008b0| 30 5d 5b 38 30 5d 3b 0a | 20 20 63 68 61 72 20 64 |0][80];.| char d|
|000008c0| 75 6d 6d 79 5b 32 5d 3b | 09 2f 2a 20 2a 2a 2a 20 |ummy[2];|./* *** |
|000008d0| 6e 65 77 20 6e 65 77 20 | 6e 65 77 20 2a 2a 2a 20 |new new |new *** |
|000008e0| 2a 2f 0a 20 20 69 6e 74 | 20 69 2c 20 6a 3b 0a 0a |*/. int| i, j;..|
|000008f0| 20 20 70 72 69 6e 74 66 | 20 28 22 45 6e 74 65 72 | printf| ("Enter|
|00000900| 20 61 20 6e 75 6d 62 65 | 72 20 28 30 2d 39 29 3a | a numbe|r (0-9):|
|00000910| 5c 6e 22 29 3b 0a 20 20 | 73 63 61 6e 66 20 28 22 |\n");. |scanf ("|
|00000920| 25 64 22 2c 20 26 6a 29 | 3b 0a 0a 20 20 67 65 74 |%d", &j)|;.. get|
|00000930| 73 20 28 64 75 6d 6d 79 | 29 3b 09 09 2f 2a 20 2a |s (dummy|);../* *|
|00000940| 2a 2a 20 47 65 74 20 74 | 68 65 20 65 6d 70 74 79 |** Get t|he empty|
|00000950| 20 73 74 72 69 6e 67 20 | 2a 2a 2a 20 2a 2f 0a 0a | string |*** */..|
|00000960| 20 20 70 72 69 6e 74 66 | 20 28 22 45 6e 74 65 72 | printf| ("Enter|
|00000970| 20 31 30 20 73 74 72 69 | 6e 67 73 3a 5c 6e 22 29 | 10 stri|ngs:\n")|
|00000980| 3b 0a 20 20 66 6f 72 20 | 28 69 20 3d 20 30 3b 20 |;. for |(i = 0; |
|00000990| 69 20 3c 20 31 30 3b 20 | 69 2b 2b 29 20 20 2f 2a |i < 10; |i++) /*|
|000009a0| 20 67 65 74 20 31 30 20 | 73 74 72 69 6e 67 73 20 | get 10 |strings |
|000009b0| 2a 2f 0a 20 20 20 20 67 | 65 74 73 20 28 73 74 72 |*/. g|ets (str|
|000009c0| 5b 69 5d 29 3b 0a 0a 20 | 20 69 66 20 28 6a 20 3e |[i]);.. | if (j >|
|000009d0| 3d 20 30 20 26 26 20 6a | 20 3c 20 31 30 29 09 09 |= 0 && j| < 10)..|
|000009e0| 2f 2a 20 2a 2a 2a 20 63 | 68 61 6e 67 65 64 20 2a |/* *** c|hanged *|
|000009f0| 2a 2a 20 2a 2f 0a 20 20 | 20 20 70 72 69 6e 74 66 |** */. | printf|
|00000a00| 20 28 22 41 6e 73 77 65 | 72 3a 20 25 73 5c 6e 22 | ("Answe|r: %s\n"|
|00000a10| 2c 20 73 74 72 5b 6a 5d | 29 3b 0a 0a 20 20 72 65 |, str[j]|);.. re|
|00000a20| 74 75 72 6e 20 31 3b 0a | 7d 0a 0a 2d 2d 2d 2d 2d |turn 1;.|}..-----|
|00000a30| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 20 |--------|------- |
|00000a40| 45 4e 44 20 49 4e 43 4c | 55 44 45 44 20 43 4f 44 |END INCL|UDED COD|
|00000a50| 45 20 3c 63 75 74 20 68 | 65 72 65 3e 20 2d 2d 2d |E <cut h|ere> ---|
|00000a60| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000a70| 2d 2d 2d 0a | |---. | |
+--------+-------------------------+-------------------------+--------+--------+